{% extends "enterprise/base.html" %}

{% block css %}
{% endblock %}

{% block content %}
            <script type="text/javascript">
                var primary_menu = "menu_3";
                var sub_menu = "menu_3_1";
            </script>
            <div class="col-md-12">
                <div class="panel panel-primary">
                    <div class="panel-heading">
                        <div class="panel-title"><h3>特征化学污染物信息</h3></div>
                        <div class="panel-options">

                            {% ifequal fillModel 'finish' %}
                                     <a href="javascript:;" class="bg"><button type="button" class="btn btn-success"> 已完成 </button></a>
                                 {% else %}
                            <a href="/pollution/release_transfer/transferAdd/" class="bg"><button type="button" class="btn btn-success">添加</button></a>
{% endifequal %}

                        </div>
                    </div>
                    <div class="panel-body with-table">
                        <table class="table table-bordered table-responsive">
                            <thead>
                            <tr>
                                <th>污染物名称</th>
                                <th>污染物类型</th>
                                <th>状态</th>
                                <th>操作</th>
                            </tr>
                            </thead>
                            <tbody>
                            {% for key in list%}
	                            <tr>
	                                <td>{{key.name}}</td>
	                                {%if key.type == '1'%}
	                                <td >重点环境管理类特征化学污染物</td>
	                                {%else%}
	                                <td >其它特征化学污染物</td>
	                                {% endif %}
                                <td>
                                     {% ifequal fillModel 'finish' %}
                                      已完成 </a>
                                 {% else %}
                                    {% ifequal key.submit_type '2' %}
                                  未确认  </a>
                                       {% else %}
                                      已确认  </a>
                                    {% endifequal %}
                                {% endifequal %}

                                </td>
	                                <td>
	                                    <a href="/pollution/release_transfer/transferDetail/?id={{key.id}}" class="btn btn-success">查看</a>
                                         {% ifnotequal fillModel 'finish' %}

                                        <a href="/pollution/release_transfer/transferEdit/?id={{key.id}}" class="btn btn-info">修改</a>
	                                    <a onclick="beforeDelete('/pollution/release_transfer/transferDel/?id={{key.id}}')" class="btn btn-danger">删除</a>
	                                    {% endifnotequal %}
                                    </td>
	                            </tr>
	                        {% endfor %}    
                            </tbody>
                        </table>
                        <div class="row">
                            <div class="col-xs-6 col-left">
                                <div class="dataTables_info" id="table-3_info"></div>
                            </div>
                            <div class="col-xs-6 col-right">
                                <div class="dataTables_paginate paging_bootstrap" style="text-align: right;margin-right: 10px">
                                    <ul class="pagination pagination-sm" >
                                        {% if cs.has_previous %}
                                            <li><a href="?page={{ cs.previous_page_number }}">上一页</a></li>
                                        {% else %}
                                            <li class="disabled"> <span>上一页</span></li>
                                        {% endif %}
                                        {% for p in paginator.page_range %}
                                            {% ifequal p cs.number %}
                                                <li class="active"> <span class="p">{{p}}</span></li>
                                            {% else%}
                                                <li> <a href="?page={{ p }}">{{p}}</a></li>
                                            {% endifequal %}
                                        {% endfor %}
                                        {% if cs.has_next %}
                                            <li class="next">  <a href="?page={{ cs.next_page_number }}">下一页</a></li>
                                        {% else %}
                                            <li class="disabled"><span>下一页</span></li>
                                        {% endif %}
                                    </ul>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

{% endblock %}

{% block js %}

{% endblock %}